package com.project.remoteService;

import com.project.bean.InfoBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient(name = "info")
public interface IInfoService {

    @PostMapping("info/add")
    public String add(@RequestBody InfoBean info);
    @GetMapping("info/findAll")
    public List<InfoBean> findAll();
    @PutMapping("info/update/{orderNum}/{state}")
    public String update (@PathVariable("orderNum") String orderNum,@PathVariable("state") String state);

}
